package zzzxb.generation;

import java.io.File;
import java.time.LocalDate;

/**
 * @author Zzzxb  2019/8/10 16:04
 * @description:
 */
public class Format {
    private String blogModesPath;
    private String fileName;
    private String filePath;
    private String tag;
    private String[] modeList;
    private String mod;

    private Format(){}

    public Format(String userName) {
        blogModesPath = "c:\\Users\\"+userName+"\\blogModeTool";
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String[] getModeList() {
        modeList = new File(blogModesPath+"\\mods").list();
        return modeList;
    }

    public void setMode(int n) {
        this.mod = modeList[n];
    }

    public String getMode() {
        return mod;
    }

    public String getBlogModesPath() {
        return blogModesPath;
    }

    public String getFileName() {
        return fileName;
    }
    public String getTitle() {
        return this.fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }
}
